package com.chenjinyan.dao;

import com.chenjinyan.entity.UserEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import javax.transaction.Transactional;
import java.util.Date;
import java.util.List;

/**
 * @author chenjinyan
 * @version 1.0
 */
@Repository
public interface UserRepository extends JpaRepository<UserEntity, Long> {
    /**
     * 邮箱查找重复用户
     *
     * @param userName 用户登陆用户名
     */
    List<UserEntity> findByLoginAccount(String userName);

}
